package org.taobao.ibatiside.ui.util;

import org.eclipse.datatools.connectivity.IConnectionProfile;
import org.eclipse.emf.codegen.jet.JETEmitter;
import org.eclipse.emf.codegen.jet.JETException;


public final class UIHelper {
	public static final String TPL_SRC="platform:/plugin/org.taobao.ibatiside.core/resource/batis-template/";
	public static JETEmitter getJet(String templateName){
		JETEmitter emitter = new JETEmitter(TPL_SRC+templateName,UIHelper.class.getClassLoader());
		try {
			emitter.addVariable("ibatiscore","org.taobao.ibatiside.core");
			emitter.addVariable("ibatisui", "org.taobao.ibatiside.ui");
			emitter.addVariable("commonlang", "org.apache.commons.lang");
		} catch (JETException e) {
			e.printStackTrace();
		}
		
		return emitter;
	}
	public static IConnectionProfile getPromptedConnectionProfile(){
		return null;
		
	}
	
}
